package com.gary.demo.controller;

import com.gary.demo.biz.OrderBO;
import com.gary.demo.vo.param.OrderCreateParamVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderBO orderBO;

    @PostMapping("/create")
    public void add(OrderCreateParamVO paramVO) {
        orderBO.add(paramVO);
    }
}
